﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nate_sRoguelikeGame
{
    class QueuedInput
    {
        public ConsoleKeyInfo Key { get; set; }
        private readonly int _expiresOnTurn;

        public bool HasExpired
        {
            get { return _expiresOnTurn != -1 && Game.CurrentTurn >= _expiresOnTurn; }
        }

        public QueuedInput(ConsoleKeyInfo key, int expiresOnTurn)
        {
            Key = key;
            _expiresOnTurn = expiresOnTurn;
        }
    }
}
